package com.joeshing.base.search;

import org.apache.lucene.search.CachingWrapperFilter;
import org.apache.lucene.search.Filter;
import org.hibernate.search.annotations.Factory;

public class BestDriversFilterFactory {

	@Factory
	public Filter getFilter() {
		// some additional steps to cache the filter results per IndexReader
		Filter bestDriversFilter = new BestDriversFilter();
		return new CachingWrapperFilter(bestDriversFilter);
	}
}
